gtkscrolledwindow: Fold kinetic deceleration handling into scroll_event()
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 19 Aug 2015 16:45:50 +0000 (18:45 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 19 Aug 2015 19:54:51 +0000 (21:54 +0200)
commit8599f209c1a0c766429429275027284491ded7ac
tree6aa75ab9328c29957bb056436913541c72df7533
parentee8c80a531c4ac034019c4622dfe935b2143ff50
gtkscrolledwindow: Fold kinetic deceleration handling into scroll_event()

In order to play along with child widgets that use scroll events for anything
else than scrolling, it will be better to do this in the bubble phase, so
the child widget has an opportunity to GDK_EVENT_STOP the event before we
trigger kinetic scrolling.

This of course won't work for widgets that choose to reimplement scroll event
handling themselves, they should be smart at resorting to GtkScrolledWindow's
scroll event handling.

This fixes kinetic scrolling kicking in too pervasively on widgets that eg.
implement zoom on scroll events.

https://bugzilla.gnome.org/show_bug.cgi?id=753495
gtk/gtkscrolledwindow.c